package cannot.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import cannot.pojo.Tv;
import cannot.pojo.TvExample;
@Mapper
public interface TvMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Tv record);

    int insertSelective(Tv record);

    List<Tv> selectByExampleWithBLOBs(TvExample example);

    List<Tv> selectByExample(TvExample example);

    Tv selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Tv record);

    int updateByPrimaryKeyWithBLOBs(Tv record);

    int updateByPrimaryKey(Tv record);
    
    List<Tv> listTvImagesIndex(Integer id);
    
    List<Tv> listTvUrlIndex(Integer id);
    
    List<Tv> listTvOtherType(Integer id);
    
    List<Tv> selectTvPraiseByUid(Long uid);
    
    List<Tv> slelectTvHistoryByUid(Long uid);
    
    List<Tv> slelectTvLikeById(Integer tvId);
    
    List<Tv> selectTvByMainTypeId(Integer mainTypeId,@Param("sort")String sort);
    
    List<Tv> selectTvByOtherTypeId(Integer sortTypeId,@Param("sort")String sort);
}